package com.sali.asyncollection.service.impl;


import com.sali.asyncollection.model.BannerDTO;
import com.sali.asyncollection.model.BannerParam;
import com.sali.asyncollection.service.IBannerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: zhang hang
 * @date: 2023/3/15 20:48.
 * @version: 1.0
 */
@Service
@Slf4j
public class BannerServiceImpl implements IBannerService {
    @Override
    public BannerDTO queryBannerInfo(BannerParam bannerParam) {
        log.info("bannerService正在执行，接收到的参数为: {}", bannerParam);
        try {
            Thread.sleep(100);
        } catch (InterruptedException ignored) {
        }
        return new BannerDTO(1L, "我是bannerName");
    }
}
